package com.mybatis.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

// 员工实体类
@NoArgsConstructor
@AllArgsConstructor
@Data
@Alias("Emp")
public class Emp {

  private String id;
  private String name;
  private String age;
  private String worktime;
  private String dept2;
  private int incoming;
  private Dept dept; // 多对一

}
